import api from '@/api'
import Notification from '@/componentsEl/notification/index.js'

const state = {

};
const mutations = {

};
const actions = {
    // 获取动态详情
    async get_production_order_details_data({
        commit
    }, obj) {
        const result = await api.transactionDynamic.get_production_order_details_data(obj);
        return result
    },
    //获取生产订单id订单详情
    async get_production_order_details_by_sc_order_id({
        commit
    }, obj) {
        const result = await api.transactionDynamic.get_production_order_details_by_sc_order_id(obj);
        return result
    },
    // 获取基本信息
    async stage_list_new({
        commit
    }, obj) {
        const result = await api.transactionDynamic.stage_list_new(obj)
        return result
    },
    // 获取跟案记录
    async query_inventory_dynamic({
        commit
    }, obj) {
        const result = await api.transactionDynamic.query_inventory_dynamic(obj)
        return result
    },
    //添加跟案备注
    async generate_dynamic({
        commit
    }, obj) {
        const result = await api.transactionDynamic.generate_dynamic(obj)
        return result
    },
    // 任務截至統計
    async task_todal_scount_dynamic({
        commit
    }, obj) {
        const result = await api.transactionDynamic.task_todal_scount_dynamic(obj)
        return result
    },
    // 修改订单名称
    async edit_order_name_dynamic({
        commit
    }, obj) {
        const result = await api.transactionDynamic.edit_order_name_dynamic(obj)
        return result
    }
};
const getters = {

};

export default {
    namespaced: true,
    state,
    actions,
    mutations,
    getters
}